<?php get_header(); ?>
    <?php get_sidebar(); ?>
        <div class="container">
        	
            <!--All Content Start-->
            <div class="content-wrapper">
            
            	<!--Feature Image-->
                <div class="feature-image">
                	<figure>
                    	<img src="<?php bloginfo('template_url'); ?>/images/upload/blog-feature-image1.jpg" alt="feature image" />
                    </figure>
                </div>
                <!--End-->
                
                <!--Page Title-->
                <div class="page-title sub single-page blog">
                	<div class="page-title-detail blog">
                    	<h1>Blog single with featured image</h1>
                        <nav class="page-navigation">
                            <ul>
                                <li><a href="index.html">home</a></li>
                                <li><a href="portfolio-single-slider-image.html">blog</a></li>
                                <li>Blog single with featured image</li>
                            </ul>
                        </nav>
                    </div>
                </div>
                <!--End-->
                
                <!--Body Content Start-->
                <section class="blog-wrapper">
                    <?php
                        $post = new WP_Query('post_type=lichgiuple');
                    ?>
                    <?php if(have_posts()): while(have_posts()): the_post(); ?>
                	<div class="blog-vertical">
                    	<div class="stripe">
                    
                            <!--Blog Meta-->
                            <nav class="blog-meta blog-single">
                                <span><i class="fa fa-clock-o"></i><a><?php the_date("d-m-Y"); ?></a></span>
                                <span class="last-meta"><i class="fa fa-user"></i><a href="#"><?php the_author(); ?></a></span>
                            </nav>
                            <!--End-->
                            <br />
                            <h2><?php the_title(); ?></h2>
                            
                            <table class="schedule">
                                <tr>
                                    <th></th>
                                    <th>
                                        Sáng
                                    </th>
                                    
                                    <th>
                                        Chiều
                                    </th>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("Thứ 2"); ?>
                                    </th>
                                    <td>
                                        <?php echo get_post_meta($post->ID, '2 - 5h00', true); ?>
                                    </td>
                                    
                                    <td>
                                        <?php echo get_post_meta($post->ID, '2 - 18h00', true); ?>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("Thứ 3"); ?>
                                    </th>
                                    <td>
                                        <?php echo get_post_meta($post->ID, '3 - 5h00', true); ?>
                                    </td>
                                    
                                    <td>
                                        <?php echo get_post_meta($post->ID, '3 - 18h00', true); ?>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("Thứ 4"); ?>
                                    </th>
                                    <td>
                                        <?php echo get_post_meta($post->ID, '4 - 5h00', true); ?>
                                    </td>
                                    
                                    <td>
                                        <?php echo get_post_meta($post->ID, '4 - 18h00', true); ?>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("Thứ 5"); ?>
                                    </th>
                                    <td>
                                        <?php echo get_post_meta($post->ID, '5 - 5h00', true); ?>
                                    </td>
                                    
                                    <td>
                                        <?php echo get_post_meta($post->ID, '5 - 18h00', true); ?>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("Thứ 6"); ?>
                                    </th>
                                    <td>
                                        <?php echo get_post_meta($post->ID, '6 - 5h00', true); ?>
                                    </td>
                                    
                                    <td>
                                        <?php echo get_post_meta($post->ID, '6 - 18h00', true); ?>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("Thứ 7"); ?>
                                    </th>
                                    <td>
                                        <?php echo get_post_meta($post->ID, '7 - 5h00', true); ?>
                                    </td>
                                    
                                    <td>
                                        <?php echo get_post_meta($post->ID, '7 - 18h00', true); ?>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <th colspan="3">
                                        <?php _e("Chủ nhật"); ?>
                                    </th>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("5h00"); ?>
                                    </th>
                                    <th>
                                        <?php _e("7h00"); ?>
                                    </th>
                                    
                                    <th>
                                        <?php _e("9h00"); ?>
                                    </th>
                                </tr>
                                
                                <tr>
                                    <td>
                                        <?php echo get_post_meta($post->ID, 'CN 1 - 5h00', true); ?>
                                    </td>
                                    <td>
                                        <?php echo get_post_meta($post->ID, 'CN 2 - 7h00', true); ?>
                                    </td>
                                    
                                    <td>
                                        <?php echo get_post_meta($post->ID, 'CN 3 - 9h00', true); ?>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("15h00"); ?>
                                    </th>
                                    <th>
                                        <?php _e("16h30"); ?>
                                    </th>
                                    
                                    <th>
                                        <?php _e("18h00"); ?>
                                    </th>
                                </tr>
                                
                                <tr>
                                    <td>
                                        <?php echo get_post_meta($post->ID, 'CN 4 - 15h00', true); ?>
                                    </td>
                                    <td>
                                        <?php echo get_post_meta($post->ID, 'CN 5 - 16h30', true); ?>
                                    </td>
                                    
                                    <td>
                                        <?php echo get_post_meta($post->ID, 'CN 6 - 18h00', true); ?>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("19h30"); ?>
                                    </th>
                                    <th></th>
                                    <th></th>
                                </tr>
                                
                                <tr>
                                    <td>
                                        <?php echo get_post_meta($post->ID, 'CN 7 - 19h30', true); ?>
                                    </td>
                                    <td></td>
                                    <td></td>
                                </tr>
                                
                                <tr>
                                    <th colspan="3">
                                        <?php _e("Chầu") ?>
                                    </th>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("Thứ 5") ?>
                                    </th>
                                    
                                    <td colspan="2">
                                        <?php echo get_post_meta($post->ID, '5 - Chầu', true); ?>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <th>
                                        <?php _e("Chủ nhật") ?>
                                    </th>
                                    
                                    <td colspan="2">
                                        <?php echo get_post_meta($post->ID, 'CN - Chầu', true); ?>
                                    </td>
                                </tr>
                                
                            </table>
                            
                            <h3>
                                <?php _e("* Thông báo") ?>:
                            </h3>
                            <?php echo get_post_meta($post->ID, 'Thông báo', true); ?>
                            
                            <div class="clearfix"></div>
                            
                            <!--Comments Start-->
                            <?php comments_template(); ?>
                            <!--Leave a Comment End-->
                            
                        </div>
                    </div>
                    <?php endwhile; ?>
                    <?php else: ?>
                    <p>Sorry, There are no posts to display!</p>
                    <?php endif; ?>
                    <?php wp_reset_postdata(); ?>
                    <?php get_sidebar('left'); ?>
                    
                </section>
                <!--Body Content End-->
                
            </div>
            <!--All Content End-->
            
            <?php get_footer(); ?>
